<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- The HTML 4.01 Transitional DOCTYPE declaration-->
<!-- above set at the top of the file will set     -->
<!-- the browser's rendering engine into           -->
<!-- "Quirks Mode". Replacing this declaration     -->
<!-- with a "Standards Mode" doctype is supported, -->
<!-- but may lead to some differences in layout.   -->

<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ page import="com.google.appengine.api.users.User"%>
<%@ page import="com.google.appengine.api.users.UserService"%>
<%@ page import="com.google.appengine.api.users.UserServiceFactory"%>

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>FESP Home</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
	<%
		UserService userService = UserServiceFactory.getUserService();
		User user = userService.getCurrentUser();
	%>

	<div id="masthead">
		<ul id="top_menu">
			<%
				if (user != null) {
			%>
			<li><a href="<%=userService.createLogoutURL("/index.jsp")%>">Log Off</a></li>
			<%
				} else {
			%>
			<li><a href="<%=userService.createLoginURL(request.getRequestURI())%>">Log In</a></li>
			<%
				}
 			%>
			<%
				if (user != null) {
			%>
			<li><a href="/student/statistics.jsp">Statistics</a></li>
			<li><a href="/student/calendar.jsp">Calendar</a></li>
			<li><a href="/student/planner.jsp">Planner</a></li>
			<%
				}
 			%>
			<li><a href="/index.jsp">Home</a></li>
		</ul>
		<div id="filler"></div>

		<%
			if (user != null) {
		%>
		<div id="user_container">
			<div id="user_info">
				<li>&nbsp;</li>
				<li>Welcome, <font color="#99b910">user</font>! <br>Modify
					your <a href="/student/settings.jsp">settings!</a><br>Last
					logged in: 00:00</li>
				<li>&nbsp;</li>
			</div>
		</div>
		<%
			}
 		%>
	</div>

	<div id="page_content">

	<table>
		<tr>
			<td class="col1">

			<div class="roundcont">
				<div class="roundtop">
					<img src="/images/topl.gif" alt="" width="15" height="15" class="corner" style="display: none" />
				</div>

				<br/>
				<center><h2>A Planner for Students</h2></center></br>
				<p><b>FESP (Final Exams Studying Planner)</b> is a time management service specifically designed
				for college students to facilitate scheduling study time for finals. Generated results are tailored
				for each individual based on course needs and time constraints. Graphs, charts, and diagrams produced
				will reflect optimal scheduling.</p><br>

				<p>The web application is written in Java (JSP). Developed with client-side interfacing, FESP
				supports versatile functionality for any user. Additionally, every user can save and restore a
				session with a downloadable fesp.log file.</p><br>

				<p>&nbsp;</p>

				<div class="roundbottom">
					<img src="/images/bottoml.gif" alt="" width="15" height="15" class="corner" style="display: none" />
				</div>
			</div>

			</td>
			<td>
		</tr>
	</table>

	</div>

	<div id="footer">
		<p>Copyright © 2011 Eric Y. Chung. All rights reserved.</p>
	</div>

</body>
</html>
